﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GIMS.MODEL;
using KPIS.GERP.GIMS.IBLL;
using KPIS.GERP.GIMS.IDAL;
using KPIS.GERP.GIMS.DALFactory;

namespace KPIS.GERP.GIMS.BLL
{
    public class MasterCommitteeFunctionBLL : IBLLMasterCommitteeFunction
    {
        private static readonly IDALMasterCommitteeFunction dal = DataAccess.CreateMasterCommitteeFunction();

        public MasterCommitteeFunctionBLL()
        {

        }

        public IList<MasterCommitteeFunctionInfo> GetMasterCommitteeFunction()
        {
            return dal.GetMasterCommitteeFunction();
        }

        public IList<MasterCommitteeFunctionInfo> GetMasterCommitteeFunction(string record_status)
        {
            return dal.GetMasterCommitteeFunction(record_status);
        }

        public IList<MasterCommitteeFunctionInfo> GetMasterCommitteeFunctionWithMapping(int map_seq)
        {
            return dal.GetMasterCommitteeFunctionWithMapping(map_seq);
        }

        public MasterCommitteeFunctionInfo GetMasterCommitteeFunction(int seq)
        {
            return dal.GetMasterCommitteeFunction(seq);
        }

        public void Insert(MasterCommitteeFunctionInfo info)
        {
            try
            {
                dal.Insert(info);
            }
            catch
            {
                throw;
            }
        }

        public void Update(MasterCommitteeFunctionInfo info)
        {
            try
            {
                dal.Update(info);
            }
            catch
            {
                throw;
            }
        }

        public void Delete(MasterCommitteeFunctionInfo info)
        {
            try
            {
                dal.Delete(info);
            }
            catch
            {
                throw;
            }
        }

        public void DeleteAll(IList<MasterCommitteeFunctionInfo> infoList)
        {
            try
            {
                dal.DeleteAll(infoList);
            }
            catch
            {
                throw;
            }
        }

        public void DeleteFromDB(IList<MasterCommitteeFunctionInfo> infoList)
        {
            try
            {
                dal.DeleteFromDB(infoList);
            }
            catch
            {
                throw;
            }
        }

        public void Restore(IList<MasterCommitteeFunctionInfo> infoList)
        {
            try
            {
                dal.Restore(infoList);
            }
            catch
            {
                throw;
            }
        }
    }
}
